package com.ybxx.base.model;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.ybxx.core.model.BaseModel;

@Entity
@Table(name="tbl_base_rule_value")
public class RuleValue extends BaseModel {
	@Id
	private String rvid;
	@ManyToOne(targetEntity=Rule.class,fetch=FetchType.LAZY)
	@JoinColumn(name="rcode",referencedColumnName="rcode") 
	private Rule rule;
	private String rvalue;
	private String seq;
	public String getRvid() {
		return rvid;
	}
	public void setRvid(String rvid) {
		this.rvid = rvid;
	}
	public Rule getRule() {
		return rule;
	}
	public void setRule(Rule rule) {
		this.rule = rule;
	}
	public String getRvalue() {
		return rvalue;
	}
	public void setRvalue(String rvalue) {
		this.rvalue = rvalue;
	}
	public String getSeq() {
		return seq;
	}
	public void setSeq(String seq) {
		this.seq = seq;
	}
	
	
}
